using System;
using System.Collections.Generic;
using UMC.Data;
namespace UMC.WorkFlow.Entities
{
public partial class TaskSync
{
readonly static Action<TaskSync,object>[] _SetValues=new Action<TaskSync,object>[]{(r,t)=>r.CreationTime=Reflection.ParseObject(t, r.CreationTime),(r,t)=>r.FormData=Reflection.ParseObject(t, r.FormData),(r,t)=>r.Id=Reflection.ParseObject(t, r.Id),(r,t)=>r.InstanceId=Reflection.ParseObject(t, r.InstanceId),(r,t)=>r.Manger=Reflection.ParseObject(t, r.Manger),(r,t)=>r.Result=Reflection.ParseObject(t, r.Result),(r,t)=>r.SendTime=Reflection.ParseObject(t, r.SendTime),(r,t)=>r.ServiceId=Reflection.ParseObject(t, r.ServiceId),(r,t)=>r.ServiceName=Reflection.ParseObject(t, r.ServiceName),(r,t)=>r.SessionId=Reflection.ParseObject(t, r.SessionId),(r,t)=>r.ShapeId=Reflection.ParseObject(t, r.ShapeId),(r,t)=>r.ShapeName=Reflection.ParseObject(t, r.ShapeName),(r,t)=>r.Status=Reflection.ParseObject(t, r.Status),(r,t)=>r.TaskId=Reflection.ParseObject(t, r.TaskId),(r,t)=>r.Times=Reflection.ParseObject(t, r.Times),(r,t)=>r.URL=Reflection.ParseObject(t, r.URL)};
readonly static string[] _Columns=new string[]{"CreationTime","FormData","Id","InstanceId","Manger","Result","SendTime","ServiceId","ServiceName","SessionId","ShapeId","ShapeName","Status","TaskId","Times","URL"};
protected override void SetValue(string name, object obv){
var index = Utility.Search(_Columns,name, StringComparer.CurrentCultureIgnoreCase);
if (index > -1)_SetValues[index](this, obv);
}
protected override void GetValues(Action<String, object> action){
AppendValue(action,"CreationTime", this.CreationTime);
AppendValue(action,"FormData", this.FormData);
AppendValue(action,"Id", this.Id);
AppendValue(action,"InstanceId", this.InstanceId);
AppendValue(action,"Manger", this.Manger);
AppendValue(action,"Result", this.Result);
AppendValue(action,"SendTime", this.SendTime);
AppendValue(action,"ServiceId", this.ServiceId);
AppendValue(action,"ServiceName", this.ServiceName);
AppendValue(action,"SessionId", this.SessionId);
AppendValue(action,"ShapeId", this.ShapeId);
AppendValue(action,"ShapeName", this.ShapeName);
AppendValue(action,"Status", this.Status);
AppendValue(action,"TaskId", this.TaskId);
AppendValue(action,"Times", this.Times);
AppendValue(action,"URL", this.URL);
}

 protected override RecordColumn[] GetColumns(){
 var cols = new RecordColumn[16];
cols[0]= RecordColumn.Column("CreationTime",this.CreationTime);
cols[1]= RecordColumn.Column("FormData",this.FormData);
cols[2]= RecordColumn.Column("Id",this.Id);
cols[3]= RecordColumn.Column("InstanceId",this.InstanceId);
cols[4]= RecordColumn.Column("Manger",this.Manger);
cols[5]= RecordColumn.Column("Result",this.Result);
cols[6]= RecordColumn.Column("SendTime",this.SendTime);
cols[7]= RecordColumn.Column("ServiceId",this.ServiceId);
cols[8]= RecordColumn.Column("ServiceName",this.ServiceName);
cols[9]= RecordColumn.Column("SessionId",this.SessionId);
cols[10]= RecordColumn.Column("ShapeId",this.ShapeId);
cols[11]= RecordColumn.Column("ShapeName",this.ShapeName);
cols[12]= RecordColumn.Column("Status",this.Status);
cols[13]= RecordColumn.Column("TaskId",this.TaskId);
cols[14]= RecordColumn.Column("Times",this.Times);
cols[15]= RecordColumn.Column("URL",this.URL);
return cols;
}

}
}

